require "Task/DailyTask/DailyTaskBase"

QNW_TS_MakeMetalSheet = QNW_TS_DailyTaskBase:derive("QNW_TS_MakeMetalSheet")

local this = QNW_TS_MakeMetalSheet
this.name = getText("IGUI_QNW_TaskSystem_Task_MakeMetalSheet_Name")
this.desc = getText("IGUI_QNW_TaskSystem_Task_MakeMetalSheet_Desc")

function QNW_TS_MakeMetalSheet:new()
    local o = QNW_TS_DailyTaskBase:new()
    setmetatable(o, self)
    self.__index = self

    o.maxCount = 1

    return o
end

function QNW_TS_MakeMetalSheet:initReward()
    local player = getPlayer()
    local level1 = player:getPerkLevel(Perks.Strength)
    if level1 == 10 then
        QNW_TS_ClientCommand.randomReward(self, "medium", 1)
    else
        if ZombRand(4) == 0 then
            QNW_TS_ClientCommand.randomReward(self, "low", 1)
        else
            table.insert(self.rewards, QNW_TS_PerkXpReward:new("Strength", 15000))
        end
    end
end
--打个胶先